package org.pr.ddddesigner.interfaces.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Getter;
import lombok.Setter;

/**
 * @description:
 * @projectName:DDD-Designer
 * @see:org.pr.ddddesigner.interfaces.dto
 * @author:LXC
 * @createTime:2024/4/19 13:54
 * @version:1.0
 */
@Getter
@Setter
@Schema(description="用户模型")
public class UpdateUser {

    @Schema(required = true,description="模型ID")
    @NotNull(message = "模型ID不能为空")
    private String userId;

    @Schema(required = true,description="用户姓名")
    @NotNull(message = "用户姓名不能为空")
    private String userName;

    @Schema(required = true,description="用户年龄")
    @NotNull(message = "用户年龄不能为空")
    private Integer userAge;
}
